﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Agency.aspx.cs" Inherits="MyInfo_Agency" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>申请代理</title>
    <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="row">
                <div runat="server" id="divCondition">
                        <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                        代理人姓名：
                    <br />
                        <asp:TextBox runat="server" ID="txtRealName" CssClass="txtSize"></asp:TextBox>
                    </div>
                   
                    <div class=" " style="margin-top: -2px">
                        <br />
                        <asp:Button runat="server" ID="btnSelect" Text="查询" CssClass="btn btn-primary btnSize" OnClick="btnSelect_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Label runat="server" CssClass="txtWarn" ID="lblWarn"></asp:Label>
                    </div>
                </div>
            </div>
            <br />
            <div>
                <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="ApplyID">
                    <Columns>
                      
                        <asp:BoundField DataField="RealName" HeaderText="真实姓名" />
                        <asp:BoundField DataField="LiveCity" HeaderText="现居城市" />                                   
                        <asp:BoundField DataField="Contact" HeaderText="联系方式" />
                        <asp:BoundField DataField="CreateTime" HeaderText="申请时间" /> 
    <%--                <asp:BoundField DataField="IDcard" HeaderText="身份证号" />           
                        <asp:BoundField DataField="Address" HeaderText="通信地址" />                   
                        <asp:BoundField DataField="Company" HeaderText="工作单位" />
                        <asp:BoundField DataField="Position" HeaderText="担任职务" />
                        <asp:BoundField DataField="Reason" HeaderText="申请理由" HeaderStyle-Width="30%"/>
                        <asp:BoundField DataField="Status" HeaderText="状态" />  --%>

                      <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                          <%# DGFormatSex(Convert.ToString(DataBinder.Eval(Container.DataItem,"Status"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>     
                                         
                      <%-- <a onclick="ShowModal('<%#"MyInfo/AgencyInfo.aspx?ApplyID="+Eval("ApplyID")%>','申请代理信息')" >审核</a>--%>
                                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#"AgencyInfo.aspx?ApplyID="+Eval("ApplyID")%>'><%#Eval("Status").ToString() == "-1" ? "审核" : ""%> </asp:HyperLink> 
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="pagerLayout">
                <webdiyer:AspNetPager ID="netPager" CssClass="pagerLayout" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="netPager_PageChanged" PrevPageText="上一页"
                    PageSize="15">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>

<script>
     //弹出框
     function ShowModal(pageLink, title) {
         parent.ShowModal(pageLink, title);
     }
</script>